import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

let deCity = '城市'
deCity = localStorage.city;
const state = {
  city:deCity
};

const mutations = {
  changeCity(state,cityName) {
        state.city = cityName;
        localStorage.city = cityName;
  }
};

export default new Vuex.Store({
  state,
  mutations,
});